package com.mavenq.fly.utils.excelv2;

import lombok.Data;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.usermodel.IndexedColors;

import java.util.*;

/**
 * Excel 导出配置类
 */
@Data
public class ExcelExportConfig {
    // 样式配置
    private IndexedColors headerBgColor = IndexedColors.SKY_BLUE;
    private IndexedColors headerFontColor = IndexedColors.WHITE;
    private short headerFontSize = 14;
    private boolean headerBold = true;
    private HorizontalAlignment headerAlignment = HorizontalAlignment.CENTER;
    private HorizontalAlignment dataAlignment = HorizontalAlignment.LEFT;
    private BorderStyle headerBorderStyle = BorderStyle.MEDIUM;
    private BorderStyle dataBorderStyle = BorderStyle.THIN;
    private boolean wrapText = true;
    
    // 尺寸配置
    private short headerRowHeight = 500;
    private short dataRowHeight = 400;
    private int defaultColumnWidth = 15;
    private int minColumnWidth = 8;
    private int maxColumnWidth = 50;
    private boolean autoSizeColumns = true;

}

